package Demo;

public class Singleton {
    private static final Singleton instance = new Singleton();
    private Singleton() {
        // 私有化构造函数
    }
    public static Singleton getInstance() {
        return instance;
    }
}
